package es.dk.hl.commands
{
	import com.adobe.cairngorm.commands.ICommand;
	import com.adobe.cairngorm.control.CairngormEvent;
	
	import es.dk.hl.event.PhotoEvent;
	import es.dk.hl.model.HomeLinkModelLocator;
	import es.dk.hl.view.helper.IWallHelper;
	
	public class Photo_AddToWall_Command implements ICommand
	{
		public function Photo_AddToWall_Command()
		{
		}
		
		public function execute(event:CairngormEvent):void
		{
			var iWallHelper:IWallHelper =
				HomeLinkModelLocator.getInstance().dicIWallHelpers[PhotoEvent(event).iWallHelperViewID]
			iWallHelper.addToWall(PhotoEvent(event).decorator);
		}
	}
}